<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>安装</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="rar.requirements.html">« 需求</a></li>
      <li style="float: right;"><a href="rar.configuration.html">运行时配置 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="rar.setup.html">安装/配置</a></li>
    <li>安装</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="rar.installation" class="section">
  <h2 class="title">安装</h2>
  <p class="para">
   Rar is currently available through PECL
   <a href="https://pecl.php.net/package/rar" class="link external">&raquo;&nbsp;https://pecl.php.net/package/rar</a>.
  </p>
  <p class="para">
   Also you can use the PECL installer to install the Rar extension, 
   using the following command: <strong class="command">pecl -v install rar</strong>.
  </p>
  <p class="para">
   You can always download the <var class="filename">tar.gz</var> package and install Rar by hand:
   <div class="example" id="example-792">
    <p><strong>示例 #1 Rar installation</strong></p>
    <div class="example-contents">
<div class="shellcode"><pre class="shellcode">gunzip rar-xxx.tgz
tar -xvf rar-xxx.tar
cd rar-xxx
phpize
./configure &amp;&amp; make &amp;&amp; make install</pre>
</div>
    </div>

   </div>
  </p>
  <p class="para">
   Windows users will enable <var class="filename">php_rar.dll</var> inside
   of <var class="filename">php.ini</var> in order to use these functions.
   <abbr title="PHP Extension and Application Repository">PECL</abbr> 扩展的
<abbr title="Dynamic Link Library">DLL</abbr> 当前不可用。参见
<a href="install.windows.building.html" class="link">在 Windows 上构建</a>章节。
  </p>
 </div></div></div></body></html>